﻿#ifndef GRAPHICSSCENE_H
#define GRAPHICSSCENE_H

#include <QObject>
#include <QGraphicsScene>

class GraphicsItem;
class QGraphicsSceneDragDropEvent;
class QGraphicsViewItem;


class GraphicsScene : public QGraphicsScene
{
    Q_OBJECT

public:
    GraphicsScene(QObject *parent = 0);

signals:
    void itemMoved(GraphicsItem *movedItem, const QPointF &movedFromPosition);

protected:
    void mousePressEvent(QGraphicsSceneMouseEvent *event);
    void mouseReleaseEvent(QGraphicsSceneMouseEvent *event);

private:
    QGraphicsItem *m_pMoveItem;
    QPointF oldPos;
};

#endif
